package xyz.zdsoft.user_info_manage_module.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Pattern;

/**
 * 新增教师参数
 * @author 以风
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="InsertTeacherParameter对象", description="新增教师信息入参")
public class InsertTeacherParameter {
    /**
     * 教师姓名
     */
    @ApiModelProperty(value = "教师姓名",required = true)
    private String name;

    /**
     * 工号
     */
    @ApiModelProperty(value = "工号",required = true)
    private String userNo;

    /**
     * 身份证号码
     */
    @ApiModelProperty(value = "身份证号码(18位)",required = true)
    @Pattern(regexp = "^[1-9]\\d{5}(18|19|([23]\\d))\\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{3}[0-9Xx]$",message = "身份证号码格式错误")
    private String idNo;

    /**
     * 性别
     */
    @ApiModelProperty(value = "性别（'男'，'女'）",required = true)
    private String sex;

    /**
     * 手机号码
     */
    @ApiModelProperty(value = "手机号码（以1开头，11位纯数字）",required = true)
    private String mobileNo;

    /**
     * 职位
     */
    @ApiModelProperty(value = "职位（'实验员','讲师','教授','副教授','主任'",required = true)
    private String position;

}
